"""author: tlf
   data: 2020/11/16
   project: ldj
"""
from functools import reduce

#手动实现float功能
a = input("输入想要转化的数字：")
b = {'1':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'0':0}
c = list(map(lambda i:b.get(i),a))
def func(x,y):
    return x*10+y
print(reduce(func,c))
print(type(reduce(func,c)))

# #被3整除的数
# print(list(filter(lambda x:x%3 == 0,range(1,100))))
#
# #平方
# a = [1,2,3,4,5,6,7,8,9,10]
# print(list(map(lambda x:x**2,a)))
#
# #转字符串
# a = [1,4,5,9]
# print("".join(map(str,a)))

#排序
# list1 = [7,-8,5,4,0,-2,-5]
# print(sorted(list1,))
#
# a = 'asdf234GDSdsf23'
# print()

# a = '1234'
# for i in a :
#     b = tuple(a)
# print(tuple(b))